%include "sconst.inc"

INT_VECTOR_SYS_CALL equ 0x90
_NR_printx equ 0
_NR_sendrec equ 1

global printx
global sendrec

bits 32
[section .text]

sendrec:
	push	ebx		; .
	push	ecx		;  > 12 bytes
	push	edx		; /
	mov eax, _NR_sendrec
	mov	ebx, [esp + 12 +  4]	; function
	mov	ecx, [esp + 12 +  8]	; src_dest
	mov	edx, [esp + 12 + 12]
	int INT_VECTOR_SYS_CALL
	pop	edx
	pop	ecx
	pop	ebx
	ret

printx:
	push	edx
	mov eax, _NR_printx
	mov edx, [esp + 4 + 4]
	int INT_VECTOR_SYS_CALL
	pop	edx
	ret
